<template>
  <div style="margin-top: 1.5%">
    <div class="sidebar">
      <!-- 跳转到指定模块 -->
      <el-card class="btn-box">
        <el-button
          style="margin-left: 10px"
          @click="goAssignBlock('block'+ 0,50)"
        >管道滑脱事件
        </el-button>
        <el-button
          @click="goAssignBlock('block'+ 1,0)"
        >事件情况描述
        </el-button>
        <el-button
          @click="goAssignBlock('block'+ 2,0)"
        >患者资料
        </el-button>
        <el-button
          @click="goAssignBlock('block'+ 3,0)"
        >其他情况
        </el-button>
        <el-button
          @click="goAssignBlock('block'+ 4,0)"
        >事件基本信息
        </el-button>
        <el-button
          @click="goAssignBlock('block'+ 5,0)"
        >当事人资料
        </el-button>
        <el-button
          @click="goAssignBlock('block'+ 6,0)"
        >事件结果
        </el-button>
        <el-button
          @click="goAssignBlock('block'+ 7,5)"
        >报告者信息
        </el-button>
      </el-card>
    </div>

    <div class="content">

      <!--管道滑脱事件-->
      <div style="width: 100%; margin-left: 8%">
        <div class="bname" ref="block0">管道滑脱事件</div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="置管日期" :rules="[{required: true, message: '置管日期未选择'}]">
              <el-date-picker
                v-model="form.enfindtime"
                type="datetime"
                placeholder="选择日期时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="管路类型">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="胃管"></el-radio>
                <el-radio label="鼻肠管"></el-radio>
                <el-radio label="导尿管"></el-radio>
                <el-radio label="CVC"></el-radio>
                <el-radio label="PICC"></el-radio>
                <el-radio label="气管插管"></el-radio>
                <el-radio label="气管切开导管"></el-radio>
                <el-radio label="胸腔闭式引流管"></el-radio>
                <el-radio label="盆腔引流管"></el-radio>
                <el-radio label="其他"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="PICC导管类型" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="单腔导管"></el-radio>
                <el-radio label="双腔导管"></el-radio>
                <el-radio label="三腔导管"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="PICC置管位置" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="贵要静脉"></el-radio>
                <el-radio label="头静脉"></el-radio>
                <el-radio label="肱静脉"></el-radio>
                <el-radio label="肘正中静脉"></el-radio>
                <el-radio label="大隐静脉"></el-radio>
                <el-radio label="颞浅静脉"></el-radio>
                <el-radio label="耳后静脉"></el-radio>
                <el-radio label="股静脉"></el-radio>
                <el-radio label="其他"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="PICC置管方式" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="超声引导"></el-radio>
                <el-radio label="盲穿"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="留置导管的主要原因" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="输入高渗液体"></el-radio>
                <el-radio label="输入化疗药物"></el-radio>
                <el-radio label="长期输液"></el-radio>
                <el-radio label="抢救和检测需要"></el-radio>
                <el-radio label="尿猪留"></el-radio>
                <el-radio label="尿失禁"></el-radio>
                <el-radio label="监测尿量"></el-radio>
                <el-radio label="昏迷或精神异常无法自行排尿"></el-radio>
                <el-radio label="近期有手术"></el-radio>
                <el-radio label="骶尾部或会阴部有开放性伤口"></el-radio>
                <el-radio label="其他"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="是否为抗菌导管" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="是"></el-radio>
                <el-radio label="否"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="发生CLABSI">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="是"></el-radio>
                <el-radio label="否"></el-radio>
              </el-radio-group>
            </el-form-item>


            <el-form-item label="发生CLABSI时导管留置时长" style="width: 600px">
              <el-input v-model="form.patientname"></el-input>
            </el-form-item>
            <el-form-item label="该患者本次住院非计划性拔管次数" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="第1次"></el-radio>
                <el-radio label="第2次"></el-radio>
                <el-radio label="第3次"></el-radio>
                <el-radio label=">3次"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="非计划拔管主要原因" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="患者自拔"></el-radio>
                <el-radio label="管道滑脱"></el-radio>
                <el-radio label="患者不慎拔管"></el-radio>
                <el-radio label="阻塞"></el-radio>
                <el-radio label="感染"></el-radio>
                <el-radio label="材质问题"></el-radio>
                <el-radio label="其他"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="其它" style="width: 600px">
              <el-input v-model="form.patientage" ></el-input>
            </el-form-item>
            <el-form-item label="是否重置" style="width: 600px">
              <el-input v-model="form.patientage" ></el-input>
            </el-form-item>
            <el-form-item label="非计划拔管时有无约束" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="有"></el-radio>
                <el-radio label="无"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="拔管时有无家属陪伴">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="有"></el-radio>
                <el-radio label="无"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="拔管时有无家属陪伴" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="高危"></el-radio>
                <el-radio label="中危"></el-radio>
                <el-radio label="低危"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="非计划拔管时患者状态" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="卧床时"></el-radio>
                <el-radio label="翻身时"></el-radio>
                <el-radio label="过床时"></el-radio>
                <el-radio label="转运时"></el-radio>
                <el-radio label="检查时"></el-radio>
                <el-radio label="其它"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="非计划拔管时患者神志" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="清醒"></el-radio>
                <el-radio label="嗜睡"></el-radio>
                <el-radio label="朦胧"></el-radio>
                <el-radio label="躁动"></el-radio>
                <el-radio label="昏迷"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="非计划拔管时患者是否镇静">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="是"></el-radio>
                <el-radio label="否"></el-radio>
                <el-radio label="不知道"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="非计划拔管时患者镇静评分工具" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="RASS(Richmond躁动-镇静评分)"></el-radio>
                <el-radio label="SAS(镇静-躁动评分)"></el-radio>
                <el-radio label="其他量表"></el-radio>
                <el-radio label="未评估"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="SAS评分" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="1"></el-radio>
                <el-radio label="2"></el-radio>
                <el-radio label="3"></el-radio>
                <el-radio label="4"></el-radio>
                <el-radio label="5"></el-radio>
                <el-radio label="6"></el-radio>
                <el-radio label="7"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="活动能力" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="行动正常"></el-radio>
                <el-radio label="使用助行器"></el-radio>
                <el-radio label="残肢"></el-radio>
                <el-radio label="无法行动"></el-radio>
                <el-radio label="需人辅助"></el-radio>
                <el-radio label="其它"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="精神状态" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="平静"></el-radio>
                <el-radio label="烦躁"></el-radio>
                <el-radio label="焦虑"></el-radio>
                <el-radio label="恐惧"></el-radio>
                <el-radio label="其它"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="自我照顾能力">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="自理"></el-radio>
                <el-radio label="部分依赖"></el-radio>
                <el-radio label="完全依赖"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="管道固定方法">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="常规"></el-radio>
                <el-radio label="缝合"></el-radio>
                <el-radio label="胶布固定"></el-radio>
                <el-radio label="水囊固定"></el-radio>
                <el-radio label="其它"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="健康宣数">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="已做"></el-radio>
                <el-radio label="未做"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="约束带使用">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="有"></el-radio>
                <el-radio label="无"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="管路滑脱时工作人员">
              <el-radio-group v-model="form.reportcategory">
                <el-radio label="在患者身边"></el-radio>
                <el-radio label="未在患者身边"></el-radio>
                <el-radio label="其他"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="并发症">
              <el-checkbox-group v-model="form.reinimf">
                <el-checkbox label="无"></el-checkbox>
                <el-checkbox label="出血(ml)"></el-checkbox>
                <el-checkbox label="血栓"></el-checkbox>
                <el-checkbox label="窒息"></el-checkbox>
                <el-checkbox label="感染"></el-checkbox>
                <el-checkbox label="气胸"></el-checkbox>
                <el-checkbox label="吻合口瘘"></el-checkbox>
                <el-checkbox label="气栓"></el-checkbox>
                <el-checkbox label="其它"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="其他" style="width: 600px">
              <el-input v-model="form.patientage" ></el-input>
            </el-form-item>
          </el-form>
        </div>
      </div>

      <!--事件情况描述-->
      <div style="width: 100%; margin-top:1%; margin-left: 8%">
        <div class="bname" ref="block1" style="border-top: 1px solid rgba(165,169,175,0.29);padding-top:0.5%">事件情况描述</div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="事件描述或事件经过" style="width: 600px">
              <el-input type="textarea" v-model="form.bgBei" :rows="3" resize="none"></el-input>
            </el-form-item>
            <el-form-item label="事件发生时是否采取处理措施" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="是"></el-radio>
                <el-radio label="否"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="采取的处理措施" style="width: 600px">
              <el-input type="textarea" v-model="form.patientname"  :rows="3" resize="none" placeholder="无"></el-input>
            </el-form-item>
          </el-form>
        </div>
      </div>

      <!--患者资料-->
      <div style="width: 100%; margin-left: 8%; margin-top:1%">
        <div class="bname" ref="block2" style="border-top: 1px solid rgba(165,169,175,0.29);padding-top:0.5%">患者资料
        </div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="是否涉及患者" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="是"></el-radio>
                <el-radio label="否"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="诊断类别" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="急诊"></el-radio>
                <el-radio label="门诊"></el-radio>
                <el-radio label="住院"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="病历号/门诊号" style="width: 600px" :rules="[{required: true, message: '患者姓名不能为空'}]">
              <el-input v-model="form.patientname" ></el-input>
            </el-form-item>
            <el-form-item label="姓名" style="width: 600px" :rules="[{required: true, message: '患者姓名不能为空'}]">
              <el-input v-model="form.patientname" ></el-input>
            </el-form-item>
            <el-form-item label="性别" :rules="[{required: true, message: '报告类型未选择'}]">
              <el-radio-group v-model="form.reporttype">
                <el-radio label="男"></el-radio>
                <el-radio label="女"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="出生日期" >
              <el-date-picker
                v-model="form.enfindtime"
                type="datetime"
                placeholder="选择日期时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="年龄" style="width: 600px">
              <el-input v-model="form.otherInform" ></el-input>
            </el-form-item>
            <el-form-item label="">
              <el-radio-group v-model="form.drugReaction">
                <el-radio label="岁"></el-radio>
                <el-radio label="月"></el-radio>
                <el-radio label="天"></el-radio>
                <el-radio label="小时"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="年龄阶段" >
              <el-select v-model="form.nianlingform" placeholder="7-12岁" filterable>
                <el-option
                  v-for="item in nianlingFormOption"
                  :key="item.value"
                  :label="item.value"
                  :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="家属联系电话" style="width: 600px">
              <el-input v-model="form.otherInform" ></el-input>
            </el-form-item>
            <el-form-item label="入院就诊时间" :rules="[{required: true, message: '置管日期未选择'}]">
              <el-date-picker
                v-model="form.enfindtime"
                type="datetime"
                placeholder="选择日期时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="科室" >
              <el-select v-model="form.keshiform"  filterable>
                <el-option
                  v-for="item in keshiFormOption"
                  :key="item.value"
                  :label="item.value"
                  :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="床号" style="width: 600px">
              <el-input v-model="form.otherInform" ></el-input>
            </el-form-item>
            <el-form-item label="护理级别">
              <el-radio-group v-model="form.familReaction">
                <el-radio label="特级护理"></el-radio>
                <el-radio label="Ⅰ级护理"></el-radio>
                <el-radio label="Ⅱ级护理"></el-radio>
                <el-radio label="Ⅲ级护理"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="文化程度">
              <el-radio-group v-model="form.familReaction">
                <el-radio label="研究生"></el-radio>
                <el-radio label="大学本科"></el-radio>
                <el-radio label="大学专科"></el-radio>
                <el-radio label="中专(中技)"></el-radio>
                <el-radio label="高中"></el-radio>
                <el-radio label="初中"></el-radio>
                <el-radio label="小学"></el-radio>
                <el-radio label="文盲"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="诊断(多个诊断之间用逗号隔开)" style="width: 600px">
              <el-input type="textarea" v-model="form.patientname"  :rows="3" resize="none" placeholder="请输入内容"></el-input>
            </el-form-item>
          </el-form>
        </div>
      </div>

      <!--其他情况-->
      <div style="width: 100%; margin-left: 8%; margin-top:1%">
        <div class="bname" ref="block3" style="border-top: 1px solid rgba(165,169,175,0.29);padding-top:0.5%">其他情况</div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="立即通知">
              <el-checkbox-group v-model="form.reinimf">
                <el-checkbox label="护士长"></el-checkbox>
                <el-checkbox label="主管医生"></el-checkbox>
                <el-checkbox label="值班医生"></el-checkbox>
                <el-checkbox label="上级主管部门"></el-checkbox>
                <el-checkbox label="保卫科"></el-checkbox>
                <el-checkbox label="病人家属及陪护"></el-checkbox>
                <el-checkbox label="其他"></el-checkbox>
              </el-checkbox-group>
            </el-form-item>
            <el-form-item label="病人/家属对该事件反应" >
              <el-radio-group v-model="form.medicineType">
                <el-radio label="不知情"></el-radio>
                <el-radio label="知情能理解"></el-radio>
                <el-radio label="知情无法理解"></el-radio>
                <el-radio label="知情反应不详"></el-radio>
                <el-radio label="其他"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-form>
        </div>
      </div>

      <!--事件基本信息-->
      <div style="width: 100%; margin-left: 8%; margin-top:1%">
        <div class="bname" ref="block4" style="border-top: 1px solid rgba(165,169,175,0.29);padding-top:0.5%">事件基本信息
        </div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="发生时间" >
              <el-date-picker
                v-model="form.enfindtime"
                type="datetime"
                placeholder="选择日期时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="发生日期" >
              <el-date-picker
                v-model="form.enfindtime"
                type="datetime"
                placeholder="选择日期时间">
              </el-date-picker>
            </el-form-item>
            <el-form-item label="日期类型" >
              <el-radio-group v-model="form.badJieguo">
                <el-radio label="工作日"></el-radio>
                <el-radio label="周末"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="发生时段" >
              <el-radio-group v-model="form.ynReduce">
                <el-radio label="上午(08:00-12:00)"></el-radio>
                <el-radio label="中午(12:00-14:00)"></el-radio>
                <el-radio label="下午(14:00-18:00)"></el-radio>
                <el-radio label="上夜(18:00-00:00)"></el-radio>
                <el-radio label="下夜夜(00:00-08:00)"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="发生地点" style="width: 600px">
              <el-input v-model="form.firqianName"></el-input>
            </el-form-item>
            <!--上传图片-->
            <el-form-item label="现场照片" prop="images">
              <el-upload
                action=""
                :limit="500"
                list-type="picture-card"
                :on-exceed="handleExceed"
                :before-upload="beforeUpload"
                :on-remove="handleRemove"
                :file-list="fileList"
              >
                <i class="el-icon-plus avatar-uploader-icon"></i>
              </el-upload>
            </el-form-item>
          </el-form>
        </div>
      </div>

      <!--当事人资料-->
      <div style="width: 100%; margin-left: 8%; margin-top:1%">
        <div class="bname" ref="block5" style="border-top: 1px solid rgba(165,169,175,0.29);padding-top:0.5%">当事人资料</div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="姓名" style="width: 600px">
              <el-input v-model="form.otherInform" ></el-input>
            </el-form-item>
            <el-form-item label="年龄" style="width: 600px">
              <el-input v-model="form.otherInform" ></el-input>
            </el-form-item>
            <el-form-item label="工作年限" >
              <el-radio-group v-model="form.jiuImpossible">
                <el-radio label="<1年"></el-radio>
                <el-radio label="1≤y≤2"></el-radio>
                <el-radio label="2≤y≤5"></el-radio>
                <el-radio label="5≤y≤10"></el-radio>
                <el-radio label="10≤y≤20"></el-radio>
                <el-radio label="≥20年"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="类别" >
              <el-radio-group v-model="form.jiuImpossible">
                <el-radio label="在编"></el-radio>
                <el-radio label="聘用"></el-radio>
                <el-radio label="进修"></el-radio>
                <el-radio label="实习"></el-radio>
                <el-radio label="轮转"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="学历" >
              <el-radio-group v-model="form.jiuImpossible">
                <el-radio label="中专"></el-radio>
                <el-radio label="大专"></el-radio>
                <el-radio label="本科"></el-radio>
                <el-radio label="硕士"></el-radio>
                <el-radio label="其他"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="职务" >
              <el-radio-group v-model="form.jiuImpossible">
                <el-radio label="医疗"></el-radio>
                <el-radio label="药剂"></el-radio>
                <el-radio label="护理"></el-radio>
                <el-radio label="医技"></el-radio>
                <el-radio label="检验"></el-radio>
                <el-radio label="工程技术"></el-radio>
                <el-radio label="行政管理"></el-radio>
                <el-radio label="后勤保障"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="职称" >
              <el-radio-group v-model="form.jiuImpossible">
                <el-radio label="高级"></el-radio>
                <el-radio label="中级"></el-radio>
                <el-radio label="初级"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-form>
        </div>
      </div>

      <!--事件结果-->
      <div style="width: 100%; margin-left: 8%; margin-top:1%">
        <div class="bname" ref="block5" style="border-top: 1px solid rgba(165,169,175,0.29);padding-top:0.5%">事件结果</div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="纠纷或纠纷隐患可能性" :rules="[{required: true, message: '对原患疾病的影响未选择'}]">
        <el-radio-group v-model="form.yuanYing">
          <el-radio label="确定有"></el-radio>
          <el-radio label="可能有"></el-radio>
          <el-radio label="无"></el-radio>
        </el-radio-group>
           </el-form-item>
            <el-form-item label="事件严重程度">
              <el-select v-model="form.thingSerious" placeholder="请选择" filterable>
                <el-option
                  v-for="item in thingSeriousOption"
                  :key="item.value"
                  :label="item.value"
                  :value="item.value">
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="事件分级" style="width: 600px">
              <el-radio-group v-model="form.thingFenji">
                <el-radio label="Ⅰ级事件: 发生错误，造成患者死亡 (包括损害程度I级)" style="margin-top: 10px; margin-bottom: 10px"></el-radio>
                <el-radio label="Ⅱ级事件: 发生错误，且造成患者伤害 (包括损害程度E、F、G、H级)" style="margin-bottom: 10px"></el-radio>
                <el-radio label="Ⅲ级事件: 发生错误，但未造成患者伤害 (包括损害程度B、C、D级)" style="margin-bottom: 10px"></el-radio>
                <el-radio label="Ⅳ级事件: 错误未发生 (错误隐患)(包括损害程度A级)"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="伤害严重度">
              <el-radio-group v-model="form.hurtDu">
                <el-radio label="死亡"></el-radio>
                <el-radio label="极度严重"></el-radio>
                <el-radio label="重度"></el-radio>
                <el-radio label="中度"></el-radio>
                <el-radio label="轻度"></el-radio>
                <el-radio label="未造成伤害"></el-radio>
                <el-radio label="无伤害"></el-radio>
              </el-radio-group>
            </el-form-item>
          </el-form>
        </div>
      </div>

      <!--报告者信息-->
      <div style="width: 100%; margin-left: 8%; margin-top:1%">
        <div class="bname" ref="block5" style="border-top: 1px solid rgba(165,169,175,0.29);padding-top:0.5%">报告者信息</div>
        <div class="block" style="margin-top: 0.5%;">
          <el-form ref="form" :model="form" label-width="140px">
            <el-form-item label="事件呈报方式" :rules="[{required: true, message: '对原患疾病的影响未选择'}]">
              <el-radio-group v-model="form.yuanYing">
                <el-radio label="主动呈报"></el-radio>
                <el-radio label="投诉"></el-radio>
                <el-radio label="他人报告"></el-radio>
                <el-radio label="质量检查发现"></el-radio>
              </el-radio-group>
            </el-form-item>
            <el-form-item label="其他信息备注" style="width: 600px">
              <el-input type="textarea" v-model="form.patientname"  :rows="3" resize="none" ></el-input>
            </el-form-item>
            <!--附件图片-->
            <el-form-item label="附件图片" prop="images">
              <el-upload
                action=""
                :limit="500"
                list-type="picture-card"
                :on-exceed="handleExceed"
                :before-upload="beforeUpload"
                :on-remove="handleRemove"
                :file-list="fileList1"
              >
                <i class="el-icon-plus avatar-uploader-icon"></i>
              </el-upload>
            </el-form-item>
          </el-form>
          </div>
    </div>
</div>
    <!--保存按钮-->
    <div style="position: fixed; margin-top: -0.5%; right: 3%; width: 300px">
      <el-button
        type="primary"
        style="margin-left: 15px"
        @click=""
      >保存
      </el-button>
      <el-button
        type="info" plain
        style="margin-left: 15px"
        @click=""
      >返回
      </el-button>
    </div>

  </div>
  </div>
 </template>


<script>
import ScrollPane from "@/layout/components/TagsView/ScrollPane";

export default {
  components: {ScrollPane},
  data() {
    return {
      form: {
        name: '',
        //上传图片
        filelist:[],
        //附件图片
        filelist2:[],
        reportcategory: '',
        reporttype: '',
        badname: '',
        enhappentime: '',
        enfindtime: '',
        undesc: '患者XXX，因“XXX”原患疾病于XXX时间入院（就诊），临床诊断XXX，从X年X月X日X时（用药起始时间）开始使用XXX药物（溶媒用量+药品用量、用法，按该顺序填写，如未使用溶媒，就不用填写溶媒）。\n' +
          '于XXX（第一次发生ADR的时间）时间，在用XXX药（如果多种药物同时使用，必须提供一个药物使用的顺序）XXX分钟/小时后，发生XXX反应，立即采取（干预时间）XXX措施（干预措施，如停止用药，并予以溶媒用量+药品用量、用法，按该顺序填写，如未使用溶媒，就不用填写溶媒），给予XXX（包含剂量）药物治疗，XXX分钟/小时（ADR终结时间）后症状缓解（ADR终结结果）。',
        diagcategory: '',
        patientname: '',
        patientgender: '',
        birdate: '',
        patientage: '',
        agestage: '',
        ethnicGroup: '',
        weightKg: '',
        telephNum: '',
        preDisease: '',
        medcliNum: '',
        drugReaction: '',
        familReaction: '',
        reinimf: [],
        otherInform: '',
        allergyInstru: '',
        bymedicineType: '',
        byapprovalNum: '',
        byproductName: '',
        bycurrentName: '',
        bydosageform: '',
        bymanuFacturer: '',
        bymanuNum: '',
        bydosage: '',
        byunti: '',
        untiDay: '',
        cGiveyao: '',
        giveWay: '',
        medstaTime: '',
        medstopTime: '',
        medUsereason: '',
        medicineType: '',
        approvalNum: '',
        productName: '',
        currentName: '',
        dosageform: '',
        manuFacturer: '',
        manuNum: '',
        dosage: '',
        unti: '',
        byuntiDay: '',
        bycGiveyao: '',
        bygiveWay: '',
        bymedstaTime: '',
        bymedstopTime: '',
        bymedUsereason: '',
        badJieguo: '',
        ynReduce: '',
        againInfact: '',
        yuanYing: '',
        bgPeoplepjia: '',
        firqianName: '',
        bgpeopleNum: '',
        bgPeoplejob: '',
        bgPlacepjia: '',
        secqianName: '',
        workName: '',
        lianxiRen: '',
        dianhuaNum: '',
        bgBei: '',
        jiuImpossible: '',
        thingFenji: '',
        hurtDu: '',
        thingSerious: '',
      },
      ageStageOption: [
        {
          value: '新生儿',
        }, {
          value: '1-6月',
        }
      ],
      ethnicGroupOption: [],
      dosageFormOption: [
        {
          value: '片剂',
        }, {
          value: '注射剂',
        }],
      untiOption: [
        {
          value: '粒',
        }, {
          value: '袋',
        }],
      giveWayOption: [
        {
          value: '口服',
        }, {
          value: '注射',
        }],




      nianlingFormOption: [
        {
          value: '7岁',
        }, {
          value: '8岁',
        },{
          value: '9岁',
        },{
          value: '10岁',
        },{
          value: '11岁',
        },{
          value: '12岁',
        }],
      keshiFormOption: [
        {
          value: '外科',
        }, {
          value: '内分泌科',
        },{
          value: '全科',
        },{
          value: '口腔科',
        },{
          value: '耳鼻喉科',
        },{
          value: '妇科',
        },{
          value: '儿科',
        },

      ],








      byuntiOption: [
        {
          value: '粒',
        }, {
          value: '袋',
        }],
      bygiveWayOption: [
        {
          value: '口服',
        }, {
          value: '注射',
        }],
      thingSeriousOption: [
        {
          value: 'A级:客观环境或条件可能引发不良事件(不良事件隐患)',
        }, {
          value: 'B级:不良事件发生但未累及患者',
        }],
      fileList: []
    }
  },
  // 表单校验
  rules: {
    keshiId:[{
      required:true,message:"科室编号不能为空",trigger:"blur"
    }],
    keshiName:[{
      required:true,message:"科室名称不能为空",trigger:"blur"
    }],
  },






  // 禁止web端屏幕缩放
  created() {
    window.addEventListener("mousewheel", function (event) {
      if (event.ctrlKey === true || event.metaKey) {
        event.preventDefault();
      }
    }, {passive: false})
  },
  methods: {
    //上传照片
    handleRemove(file) {
      this.fileList = this.fileList.filter(item => item.uid !== file.uid);
    },
    handleExceed() {
      this.msgError("最多只能传500张照片");
    },
    beforeUpload(file) {
      const isJPG = file.type === "image/jpeg" || file.type == "image/png";
      const isLt2M = file.size / 1024 / 1024 < 2;
      if (!isJPG) {
        this.$message.error("上传头像图片只能是 JPG 或 PNG 格式!");
        return;
      }
      if (!isLt2M) {
        this.$message.error("上传头像图片大小不能超过 2MB!");
        return;
      }
      const fileData = new FormData();
      fileData.append("avatar", file);
      //upload为上传的接口
      upload(fileData).then(res => {
        this.imgUrl = res.imgUrl;
        //对返回的图片地址进行回显
        this.$set(this.form, "avatar", this.imgUrl);
      });
      //阻止传到本地浏览器
      return false;
    },

    //附件图片
    handleRemove(file) {
      this.fileList2 = this.fileList2.filter(item => item.uid !== file.uid);
    },
    handleExceed() {
      this.msgError("最多只能传500张照片");
    },
    beforeUpload(file) {
      const isJPG = file.type === "image/jpeg" || file.type == "image/png";
      const isLt2M = file.size / 1024 / 1024 < 2;
      if (!isJPG) {
        this.$message.error("上传头像图片只能是 JPG 或 PNG 格式!");
        return;
      }
      if (!isLt2M) {
        this.$message.error("上传头像图片大小不能超过 2MB!");
        return;
      }
      const fileData = new FormData();
      fileData.append("avatar", file);
      //upload为上传的接口
      upload(fileData).then(res => {
        this.imgUrl = res.imgUrl;
        //对返回的图片地址进行回显
        this.$set(this.form, "avatar", this.imgUrl);
      });
      //阻止传到本地浏览器
      return false;
    },





    //el 标签  speed 滚动速率 此处是50px 值越大滚动的越快
    goAssignBlock(el, speed) {
      let t = this.$refs[el].offsetTop - 100

      function scrollToTop() {
        let scrollTop = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop;

        if (scrollTop > t) {
          window.scrollTo(0, scrollTop - speed);

          // 使用 requestAnimationFrame 进行平滑滚动
          requestId = window.requestAnimationFrame(scrollToTop);
        } else {
          window.scrollTo(0, t);

          // 取消动画帧的请求
          window.cancelAnimationFrame(requestId);
        }
      }

      let requestId = window.requestAnimationFrame(scrollToTop);
    },

  },

}



</script>

<style lang="scss" scoped>
.sidebar {
  margin-left: 3%;
  width: 10%;
  float: left;
  display: flex;
}

.content {
  margin-left: 3%;
  margin-right: 1.5%;
  width: 87%;
  float: right;
}

.btn-box {
  position: fixed;
  margin-top: 1%;

  ::v-deep .el-card__body {
    padding: 15px 15px 15px 5px;
  }
}

.btn-box button {
  text-align: left;
  padding: 0 0 0 10px;
  display: block;
  width: 150px;
  height: 40px;
  border: none;
  cursor: pointer;
}

.btn-box button:hover {
  background: hsl(221, 98%, 68%);
  color: white;
}

.block {
  border: 1px solid white;
  width: 100%;
  height: 100%;
  display: flex;
  font-size: 5rem;
  box-sizing: border-box;

  .el-form-item {
    margin-bottom: 10px;
  }
}

.bname {
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  font-weight: bold;
  font-size: 20px;
  color: #606266;
}

</style>
